import { Column, Entity, PrimaryGeneratedColumn, BaseEntity, OneToMany, DeleteDateColumn, } from 'typeorm';
import { Goods } from 'src/erp/goods/entities/goods.entity';
@Entity('erp_goods_category')
export class GoodsCategory extends BaseEntity {
    @PrimaryGeneratedColumn()
    id: number;
    @Column()
    name: string;
    @Column()
    parentId: number;
    @Column()
    description: string;
    @Column()
    code: string;
    @Column('tinyint')
    status: number;
    @DeleteDateColumn({ nullable: true }) // TypeORM 内置软删除字段
    deletedTime: Date;
    @OneToMany(() => Goods, goods => goods.category)
    goods: Goods[];
}
